package domfarr.tapestry.util;

import domfarr.tapestry.model.User;

public class Security {
	private static final String PASSWORD = "secret";
	private static final String USERNAME = "user";

	public static User authenticate(String userName, String password) {
		if (USERNAME.equals(userName) && PASSWORD.equals(password)) {
			return new User("John", "Smith");
		}
		return null;
	}
}
